<template>
  <div class="Header">
    <h1 class="logo">莘友网</h1>
    <div class="navList">
      <ul>
        <li v-for="(nav, index) in navList" v-bind:key="index">
          {{ nav }}
        </li>
      </ul>
    </div>
    <div class="userOption">
      <div class="userInfo">
        <span>个人信息</span>
      </div>
      <button id="btn_sign">注册/登录</button>
    </div>
  </div>
</template>

<script>
// 定义头部组件
export default {
  name: "Header",
  data() {
    return {
      navList: [
        "校友关系图谱",
        "学校关系图谱",
        "校友就业去向动态趋势",
        "区域校友联谊",
        "心系母校"
      ]
    };
  },
  props: {
    msg: String
  }
};
</script>

<style scoped>
.Header {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.logo {
  width: 5vw;
  color: white;
  margin: 0 60px;
}
.navList {
  width: 50vw;
  height: 50px;
}
.navList > ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  font-size: 16px;
  color: whitesmoke;
  padding-left: 0;
  cursor: pointer;
}
ul > li {
  list-style: none;
}
.navList > ul > li:hover {
  color: #ddd;
}
.userOption {
  display: flex;
  justify-content: flex-end;
  align-items: center;  
  text-align: right;
  width: 24vw;
  height: 80px;
}
.userOption>.userInfo{
  margin-right: 60px;
  font-size: 16px;
  color: whitesmoke;
  cursor: pointer;
}
.userOption>.userInfo:hover {
  color: #ddd;
}
.userOption>#btn_sign{
  border: none;
  height: 42px;
  width: 100px;
  border-radius:5px;
  background-color: #35BBED;
  color: #fff;
  cursor: pointer;
}
.userOption>#btn_sign:focus{
  border: none;
  outline: none;
}
.userOption>#btn_sign:active{
   transform: scale(0.9);
   transition: 0.3s;
}

</style>
